<?php
/**
 * 描述
 * Created by Paco
 * Date: 2018/11/21 Time: 14:56
 */

namespace App\Http\Request\Order;


use App\Http\Request\Store;

class CartStore extends Store
{
    public function rules()
    {
        return [
            'product_id' => 'required|integer',
            'sku_id' => 'required',
            'quantity' => 'filled|integer|min:1'
        ];
    }

    public function attributes()
    {
        return [
            'product_id' => '商品ID',
            'sku_id' => 'SKU ID',
            'number' => '商品数量'
        ];
    }
}